<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员密码修改</title>
<script type="text/javascript" src="${ctxPath}/resource/common/js/core/core.js"></script> 
<link rel="stylesheet" type="text/css" media="screen" href="${ctxPath}/resource/common/js/jquery/jquery-calendar.css"/>

<script type="text/javascript">
    
	$(function() {
		applyDate("datepicker");

	});
	</script>
	<SCRIPT src="${ctxPath}/style/superValidator.js" type=text/javascript></SCRIPT>
	<SCRIPT type=text/javascript>
	$(document).ready(function(){
	setEmptyCheck("username:address");	
	setIntegeCheck("memberCard");
	setMailCheck("email");
	setChineseCheck("fullname");
	setIntegeCheck("sex");
	setMobileCheck("mobile");
	
	});
	</script>
</head>
<body>

<form:form method="post" id="user" commandName="user" action="editUserInfo.do" enctype="multipart/form-data">	
<form:hidden path="userId"/>

	<ul class="enroll_top"><img src="${ctxPath}/image/members/enroll_title.gif" width="816" height="8"/></ul>
	<ul class="enroll">
		<li class="enroll_title"><img src="${ctxPath}/image/members/enroll_dot.gif" width="14" height="14" align="absmiddle"/> 修改个人资料信息</li>
		<li class="enroll_info">
			<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  				<tr>
    				<td>登录账号： <font color="#999999">${user.username }</font></td>
  				</tr>
  				<%-- <tr>
    				<td>账号密码： <font color="#999999">${user.password }</font></td>
  				</tr>
  				<tr>
				<tr>
    				<td>会员卡号： <font color="#999999">${user.memberCard }</font></td>
  				</tr> --%>
				<tr>
    				<td>电子邮箱： <input type="text" name="email" id="email" class="enrollbox240" check=2 tip="输入正确电子邮箱" value="${user.email }" /></td>
  				</tr>
			</table>
		</li>
		<li class="enroll_info">
			<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  				<tr>
    				<td>真实姓名： <input type="text" name="fullname" id="fullname" class="enrollbox95" check=2  tip="不能为空" value="${user.fullname }" /></td>
  				</tr>
  				<tr>
    				<td>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：  
						<select name="sex" id="sex" size="1" class="enrollbox40">
    				  		<option value="1">男</option>
				            <option value="2">女</option>
    					</select>
    				<script type="text/javascript">
					 if("${user.sex}"!="")
					 {
						 document.getElementById("sex").value="${user.sex}";
					 }
					 
					 </script> </td>
  				</tr>
  				<tr>
    				<td>生&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日： <input type="text" name="birthday" class="enrollbox95" id="datepicker" value="<fmt:formatDate value="${user.birthday}" pattern="yyyy-MM-dd"/>" /></td>
  				</tr>
  				<tr>
    				<td>固定电话： <input type="text" name="phone" id="phone" class="enrollbox95" value="${user.phone }" /></td>
  				</tr>
				<tr>
    				<td>手机号码： <input type="text" name="mobile" id="mobile" class="enrollbox120" check=2 tip="输入正确手机号" value="${user.mobile }" /></td>
  				</tr>
  				<tr>
    				<td>联系地址： <input type="text" name="address" id="address" class="enrollbox360" value="${user.address }" /></td>
  				</tr>
  				<tr>
    				<td>邮政编码： <input type="text" name="postCode" class="enrollbox95" value="${user.postCode }" /></td>
  				</tr>
			</table>
		</li>
		<li class="enroll_info">
		<table width="100%"  border="0" cellspacing="0" cellpadding="0">
			  <tr>
				<td>避免过大占用网站空间，图片大小请保持在100*100像素以下</td>
			  </tr>
			  <tr>
				<td>修改头像：<input name="file" type="file" class="inputbox240"/></td>
			  </tr>
			</table>
		</li>
		<li class="enroll_sumbit"><input type="submit" name="Submit" value="提 交"  class="message_submit"/><input name="cancel" type="submit" onClick="bCancel=true" value=" 取消 " class="message_submit" /></li>
	</ul>
	<ul class="enroll_bottom"><img src="${ctxPath}/image/members/enroll_last.gif" width="816" height="8"/></ul>
   


</form:form>
</body>
</html>

